package cn.tedu.egmybatis2.mapper;

import cn.tedu.egmybatis2.pojo.entity.Product;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ProductMapeer {
    @Insert("INSERT INTO product(id,title,price,stock) VALUES(#{id},#{title},#{price},#{stock})")
    void insert(Product product );
}
